import api from '../api.js'
export default {
  GetParkingGroupListData (params) {
    return api.fetchGet('/parkingGroup/getListByName.do', params);
  },
  SaveParkingGroupData (params) {
    let url = '/parkingGroup/addParkingGroup.do';
    if(params.id){
      url = '/parkingGroup/modifyParkingGroup.do';
    }
    return api.fetchPost(url, params);
  },
  DeleteParkingGroup (params) {
    return api.fetchPost('/parkingGroup/delParkingGroup.do', params);
  },
  GetParkingGroupAreaParkTree (params) {
    return api.fetchGet('/parkingGroup/getParkingGroupAreaParkTree.do', params);
  },
  BindParkingGroup (params) {
    return api.fetchPost('/parkingGroup/bindParkingGroup.do', params);
  },
  GetUserList (params) {
    return api.fetchGet('/parkingGroup/getUserByParkingGroup2.do', params);
  }
}